﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.Colors
{
    /// <summary>
    /// 颜色信息
    /// </summary>
    [Table("T_BomColor")]
    public class Color : FullAuditedEntity
    {
        /// <summary>
        /// 颜色名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string ColorName { get; set; }

        /// <summary>
        /// 颜色代码
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string ColorCode { get; set; }

        public Color(string colorName, string colorCode)
        {
            ColorName = colorName;
            ColorCode = colorCode;

        }

        public Color()
        {

        }
    }
}
